package com.paw.portal.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import com.paw.common.domain.IBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 角色信息表
 * </p>
 *
 * @author Rubble
 * @since 2021-08-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_sys_role")
@ApiModel(value = "SysRole对象", description = "角色信息表")
public class SysRole implements IBaseEntity, Serializable {

  private static final long serialVersionUID = 1L;

  @ApiModelProperty(value = "角色ID")
  @TableId(value = "f_id", type = IdType.AUTO)
  private Long id;

  @ApiModelProperty(value = "角色名称")
  @TableField("f_name")
  private String name;

  @ApiModelProperty(value = "角色权限字符串")
  @TableField("f_role_key")
  private String roleKey;

  @ApiModelProperty(value = "显示顺序")
  @TableField("f_sort_num")
  private Integer sortNum;

  @ApiModelProperty(value = "数据范围（1：全部数据权限 2：自定数据权限 3：本部门数据权限 4：本部门及以下数据权限）")
  @TableField("f_data_scope")
  private Integer dataScope;

  @ApiModelProperty(value = "角色状态（0：禁用；1：正常）")
  @TableField("f_status")
  private Integer status;

  @ApiModelProperty(value = "备注")
  @TableField("f_remark")
  private String remark;

  @ApiModelProperty(value = "菜单树选择的节点")
  @TableField("f_menu_tree_nodes")
  private String menuTreeNodes;

  @ApiModelProperty(value = "删除标志 1是")
  @TableField("f_del_flag")
  private Integer delFlag;

  @ApiModelProperty(value = "创建者")
  @TableField(value = "f_create_by", fill = FieldFill.INSERT)
  private String createBy;

  @ApiModelProperty(value = "创建时间")
  @TableField(value = "f_create_time", fill = FieldFill.INSERT)
  private Date createTime;

  @ApiModelProperty(value = "更新者")
  @TableField(value = "f_update_by", fill = FieldFill.UPDATE)
  private String updateBy;

  @ApiModelProperty(value = "更新时间")
  @TableField(value = "f_update_time", fill = FieldFill.INSERT_UPDATE)
  private Date updateTime;


}
